export const request = (option) => {
	return new Promise((resolve,reject) => {
		uni.request({
			url:'http://124.93.196.45:10001/' + option.url,
			method: option.method || 'GET',
			data: option.data || {},
			header: option.url === '/prod-api/api/login' ? {} : {Authorization: uni.getStorageSync('token')},
			success: (res) => {
				resolve(res.data)
			},
			fail: (err) => {
				reject(err)
			}
		})
	})
}